home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HIControls.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
438KB
|
14,504 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HIControls.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_HIControl_xh
#define SOM_HIControl_xh
class HIControl;
#define HIControl_MajorVersion 0
#define HIControl_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Types.h>
#include <HIObjectTypes.h>
#include <HIControlTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIPanel_xh
#include <HIPanels.xh>
#endif
#ifndef HIControl_API
#define HIControl_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class HIWindow;
class HIEmbeddingPanel;
class HIMenu;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIControlCClassData HIControlClassData
#define HIControlNewClass(major,minor) somNewVersionedClassReference(HIControl,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIControlMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIControl class object, and the methods it introduces. */
SOMEXTERN struct HIControlClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitControl;
somMToken SetValue;
somMToken GetValue;
somMToken SetMinimum;
somMToken GetMinimum;
somMToken SetMaximum;
somMToken GetMaximum;
somMToken SimulateSelection;
somMToken reserved0;
somMToken reserved1;
} SOMDLINK HIControlClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIControl_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIControlClassData
#endif
#endif
/*
* -- Typedefs for HIControl Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIControl_InitControl)(HIControl *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIControl_SetValue)(HIControl *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIControl_GetValue)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_SetMinimum)(HIControl *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIControl_GetMinimum)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_SetMaximum)(HIControl *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIControl_GetMaximum)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_SimulateSelection)(HIControl *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIControl_GetEmbeddingParent)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_InitPanel)(HIControl *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIControl_RegisterInterestInAppleEvent)(HIControl *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIControl_HasValidContent)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_GetDeepCollectionItemData)(HIControl *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIControl_GetWindow)(HIControl *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIControl_GetPort)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_GetRefLabel)(HIControl *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIControl_GetCollection)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_Init)(HIControl *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIControl_Terminate)(HIControl *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIControl_Clone)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Release)(HIControl *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIControl_GetOwnerCount)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_InitFromAERecord)(HIControl *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIControl_WriteToAERecord)(HIControl *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIControl_CalculateOptimalSize)(HIControl *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIControl_GetBoundingRect)(HIControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIControl_SetBoundingRect)(HIControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIControl_SetPosition)(HIControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIControl_SetSize)(HIControl *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIControl_GetUpdateRect)(HIControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIControl_Enable)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Disable)(HIControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIControl_IsEnabled)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Show)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Hide)(HIControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIControl_IsVisible)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleAppleEvent)(HIControl *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleActivate)(HIControl *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleDeactivate)(HIControl *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleNavigation)(HIControl *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleMouseDownInContent)(HIControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleMouseMovedInContent)(HIControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleMouseStoppedMovingInContent)(HIControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIControl_HandleMouseUpInContent)(HIControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIControl_TakeUserInputFocus)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_ReleaseUserInputFocus)(HIControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIControl_HasUserInputFocus)(HIControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIControl_CanReleaseUserInputFocus)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_SetUserInputFocusFlags)(HIControl *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIControl_GetUserInputFocusFlags)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_SetTitle)(HIControl *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIControl_GetTitle)(HIControl *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIControl_Draw)(HIControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIControl_Erase)(HIControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIControl_Invalidate)(HIControl *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIControl_GetDrawingMode)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_SetDrawingMode)(HIControl *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIControl_SetBackgroundPattern)(HIControl *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIControl_GetBackgroundPattern)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Cut)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Copy)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Paste)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_Clear)(HIControl *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIControl_GetClipboardSupportFlags)(HIControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIControl_AddStateChangeCallback)(HIControl *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIControl_RemoveStateChangeCallback)(HIControl *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIControl_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIControl_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIControl_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIControl_DrawContent)(HIControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIControl_EraseContent)(HIControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIControl_TranslatePoint)(HIControl *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIControl_TranslateRect)(HIControl *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIControl_StateChanged)(HIControl *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIControl_SetClipboardSupportFlags)(HIControl *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIControl_Verify)(HIControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIControl_somInit)(HIControl *somSelf);
typedef void (* SOMLINK somTD_HIControl_somUninit)(HIControl *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIControl_somDuplicateReference)(HIControl *somSelf);
typedef boolean (* SOMLINK somTD_HIControl_somCompareReference)(HIControl *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIControl_somRelease)(HIControl *somSelf);
typedef void (* SOMLINK somTD_HIControl_somFree)(HIControl *somSelf);
typedef boolean (* SOMLINK somTD_HIControl_somCanDelete)(HIControl *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIControl_somGetClass)(HIControl *somSelf);
typedef corbastring (* SOMLINK somTD_HIControl_somGetClassName)(HIControl *somSelf);
typedef long (* SOMLINK somTD_HIControl_somGetSize)(HIControl *somSelf);
typedef boolean (* SOMLINK somTD_HIControl_somIsA)(HIControl *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIControl_somRespondsTo)(HIControl *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIControl_somIsInstanceOf)(HIControl *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIControl_somDispatch)(HIControl *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIControl_somClassDispatch)(HIControl *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIControl_somCastObj)(HIControl *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIControl_somResetObj)(HIControl *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIControl_somPrintSelf)(HIControl *somSelf);
typedef void (* SOMLINK somTD_HIControl_somDumpSelf)(HIControl *somSelf,
long level);
typedef void (* SOMLINK somTD_HIControl_somDumpSelfInt)(HIControl *somSelf,
long level);
}
#endif /* HIControl_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIControl
*/
class HIControl : public HIPanel
{
public:
// HIControl::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIControl, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIControl);
}
// HIControl::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIControl,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIControl,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIControl,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIControl,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIControl,SimulateSelection)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIControl,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIControl,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIControl,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIControl,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIControl,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIControl,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIControl,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIControl,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIControl,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIControl,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIControl,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIControl,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIControl,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIControl,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIControl,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIControl,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIControl,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIControl,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIControl,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIControl,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIControl,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIControl,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIControl,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIControl,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIControl_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIControl_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIControl_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIControl,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIControl,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIControl,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIControl,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIControl,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIControl,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIControl,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIControl,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIControl,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIControl,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIControl,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIControl,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIControl,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIControl,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIControl,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIControl,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIControl,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIControl,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIControl,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIControl,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIControl_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIControl,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIControl,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIControl_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIControl,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIControl,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIControl,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIControl,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIControl,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIControl,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIControl,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIControl */
#endif /* SOM_HIControl_xh */
#ifndef SOM_HIPushButton_xh
#define SOM_HIPushButton_xh
class HIPushButton;
#define HIPushButton_MajorVersion 0
#define HIPushButton_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIPushButton_API
#define HIPushButton_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIPushButtonCClassData HIPushButtonClassData
#define HIPushButtonNewClass(major,minor) somNewVersionedClassReference(HIPushButton,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIPushButtonMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIPushButton class object, and the methods it introduces. */
SOMEXTERN struct HIPushButtonClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitPushButton;
somMToken SetAdornment;
somMToken GetAdornment;
} SOMDLINK HIPushButtonClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIPushButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIPushButtonClassData
#endif
#endif
/*
* -- Typedefs for HIPushButton Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIPushButton_InitPushButton)(HIPushButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef void (* SOMLINK somTD_HIPushButton_SetAdornment)(HIPushButton *somSelf, Environment *ev,
HIAdornment adornment);
typedef HIAdornment (* SOMLINK somTD_HIPushButton_GetAdornment)(HIPushButton *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIPushButton_InitControl)(HIPushButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIPushButton_SetValue)(HIPushButton *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIPushButton_GetValue)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_SetMinimum)(HIPushButton *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIPushButton_GetMinimum)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_SetMaximum)(HIPushButton *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIPushButton_GetMaximum)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_SimulateSelection)(HIPushButton *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIPushButton_GetEmbeddingParent)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_InitPanel)(HIPushButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIPushButton_RegisterInterestInAppleEvent)(HIPushButton *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIPushButton_HasValidContent)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_GetDeepCollectionItemData)(HIPushButton *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIPushButton_GetWindow)(HIPushButton *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIPushButton_GetPort)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_GetRefLabel)(HIPushButton *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIPushButton_GetCollection)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_Init)(HIPushButton *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIPushButton_Terminate)(HIPushButton *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIPushButton_Clone)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Release)(HIPushButton *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIPushButton_GetOwnerCount)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_InitFromAERecord)(HIPushButton *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPushButton_WriteToAERecord)(HIPushButton *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIPushButton_CalculateOptimalSize)(HIPushButton *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIPushButton_GetBoundingRect)(HIPushButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIPushButton_SetBoundingRect)(HIPushButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIPushButton_SetPosition)(HIPushButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIPushButton_SetSize)(HIPushButton *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIPushButton_GetUpdateRect)(HIPushButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIPushButton_Enable)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Disable)(HIPushButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPushButton_IsEnabled)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Show)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Hide)(HIPushButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPushButton_IsVisible)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleAppleEvent)(HIPushButton *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleActivate)(HIPushButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleDeactivate)(HIPushButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleNavigation)(HIPushButton *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleMouseDownInContent)(HIPushButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleMouseMovedInContent)(HIPushButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleMouseStoppedMovingInContent)(HIPushButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_HandleMouseUpInContent)(HIPushButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIPushButton_TakeUserInputFocus)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_ReleaseUserInputFocus)(HIPushButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPushButton_HasUserInputFocus)(HIPushButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPushButton_CanReleaseUserInputFocus)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_SetUserInputFocusFlags)(HIPushButton *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIPushButton_GetUserInputFocusFlags)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_SetTitle)(HIPushButton *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIPushButton_GetTitle)(HIPushButton *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIPushButton_Draw)(HIPushButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIPushButton_Erase)(HIPushButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIPushButton_Invalidate)(HIPushButton *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIPushButton_GetDrawingMode)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_SetDrawingMode)(HIPushButton *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIPushButton_SetBackgroundPattern)(HIPushButton *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIPushButton_GetBackgroundPattern)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Cut)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Copy)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Paste)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_Clear)(HIPushButton *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIPushButton_GetClipboardSupportFlags)(HIPushButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPushButton_AddStateChangeCallback)(HIPushButton *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIPushButton_RemoveStateChangeCallback)(HIPushButton *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIPushButton_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIPushButton_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIPushButton_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIPushButton_DrawContent)(HIPushButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIPushButton_EraseContent)(HIPushButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIPushButton_TranslatePoint)(HIPushButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIPushButton_TranslateRect)(HIPushButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIPushButton_StateChanged)(HIPushButton *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIPushButton_SetClipboardSupportFlags)(HIPushButton *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIPushButton_Verify)(HIPushButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPushButton_somInit)(HIPushButton *somSelf);
typedef void (* SOMLINK somTD_HIPushButton_somUninit)(HIPushButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPushButton_somDuplicateReference)(HIPushButton *somSelf);
typedef boolean (* SOMLINK somTD_HIPushButton_somCompareReference)(HIPushButton *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIPushButton_somRelease)(HIPushButton *somSelf);
typedef void (* SOMLINK somTD_HIPushButton_somFree)(HIPushButton *somSelf);
typedef boolean (* SOMLINK somTD_HIPushButton_somCanDelete)(HIPushButton *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIPushButton_somGetClass)(HIPushButton *somSelf);
typedef corbastring (* SOMLINK somTD_HIPushButton_somGetClassName)(HIPushButton *somSelf);
typedef long (* SOMLINK somTD_HIPushButton_somGetSize)(HIPushButton *somSelf);
typedef boolean (* SOMLINK somTD_HIPushButton_somIsA)(HIPushButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPushButton_somRespondsTo)(HIPushButton *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIPushButton_somIsInstanceOf)(HIPushButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPushButton_somDispatch)(HIPushButton *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPushButton_somClassDispatch)(HIPushButton *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPushButton_somCastObj)(HIPushButton *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIPushButton_somResetObj)(HIPushButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPushButton_somPrintSelf)(HIPushButton *somSelf);
typedef void (* SOMLINK somTD_HIPushButton_somDumpSelf)(HIPushButton *somSelf,
long level);
typedef void (* SOMLINK somTD_HIPushButton_somDumpSelfInt)(HIPushButton *somSelf,
long level);
}
#endif /* HIPushButton_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIPushButton
*/
class HIPushButton : public HIControl
{
public:
// HIPushButton::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIPushButton, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIPushButton);
}
// HIPushButton::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitPushButton */
OSStatus InitPushButton(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPushButton,HIPushButton,InitPushButton)
(this,ev,identifier,window,bounds);
}
/* method: SetAdornment */
void SetAdornment(Environment *ev,
HIAdornment adornment)
{
SOM_ResolveD(this,HIPushButton,HIPushButton,SetAdornment)
(this,ev,adornment);
}
/* method: GetAdornment */
HIAdornment GetAdornment(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIPushButton,GetAdornment)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIPushButton,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIPushButton,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIPushButton,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIPushButton,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPushButton,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIPushButton,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIPushButton,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIPushButton,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIPushButton,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPushButton,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPushButton,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIPushButton,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIPushButton,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIPushButton,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIPushButton,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIPushButton,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIPushButton,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIPushButton,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIPushButton,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIPushButton,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIPushButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIPushButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIPushButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIPushButton,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIPushButton,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIPushButton,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIPushButton,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIPushButton,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIPushButton,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIPushButton,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIPushButton,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIPushButton,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIPushButton,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIPushButton_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPushButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIPushButton_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPushButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIPushButton,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIPushButton,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIPushButton,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIPushButton */
#endif /* SOM_HIPushButton_xh */
#ifndef SOM_HIBevelButton_xh
#define SOM_HIBevelButton_xh
class HIBevelButton;
#define HIBevelButton_MajorVersion 0
#define HIBevelButton_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIBevelButton_API
#define HIBevelButton_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIBevelButtonCClassData HIBevelButtonClassData
#define HIBevelButtonNewClass(major,minor) somNewVersionedClassReference(HIBevelButton,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIBevelButtonMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIBevelButton class object, and the methods it introduces. */
SOMEXTERN struct HIBevelButtonClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitBevelButton;
somMToken SetBehavior;
somMToken GetBehavior;
} SOMDLINK HIBevelButtonClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIBevelButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIBevelButtonClassData
#endif
#endif
/*
* -- Typedefs for HIBevelButton Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIBevelButton_InitBevelButton)(HIBevelButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
HIControlBehavior behavior);
typedef void (* SOMLINK somTD_HIBevelButton_SetBehavior)(HIBevelButton *somSelf, Environment *ev,
HIControlBehavior newBehavior);
typedef HIControlBehavior (* SOMLINK somTD_HIBevelButton_GetBehavior)(HIBevelButton *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIBevelButton_InitControl)(HIBevelButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIBevelButton_SetValue)(HIBevelButton *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIBevelButton_GetValue)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_SetMinimum)(HIBevelButton *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIBevelButton_GetMinimum)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_SetMaximum)(HIBevelButton *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIBevelButton_GetMaximum)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_SimulateSelection)(HIBevelButton *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIBevelButton_GetEmbeddingParent)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_InitPanel)(HIBevelButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_RegisterInterestInAppleEvent)(HIBevelButton *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIBevelButton_HasValidContent)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_GetDeepCollectionItemData)(HIBevelButton *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIBevelButton_GetWindow)(HIBevelButton *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIBevelButton_GetPort)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_GetRefLabel)(HIBevelButton *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIBevelButton_GetCollection)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_Init)(HIBevelButton *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIBevelButton_Terminate)(HIBevelButton *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIBevelButton_Clone)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Release)(HIBevelButton *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIBevelButton_GetOwnerCount)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_InitFromAERecord)(HIBevelButton *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_WriteToAERecord)(HIBevelButton *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIBevelButton_CalculateOptimalSize)(HIBevelButton *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIBevelButton_GetBoundingRect)(HIBevelButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIBevelButton_SetBoundingRect)(HIBevelButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIBevelButton_SetPosition)(HIBevelButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIBevelButton_SetSize)(HIBevelButton *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIBevelButton_GetUpdateRect)(HIBevelButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIBevelButton_Enable)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Disable)(HIBevelButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIBevelButton_IsEnabled)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Show)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Hide)(HIBevelButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIBevelButton_IsVisible)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleAppleEvent)(HIBevelButton *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleActivate)(HIBevelButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleDeactivate)(HIBevelButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleNavigation)(HIBevelButton *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleMouseDownInContent)(HIBevelButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleMouseMovedInContent)(HIBevelButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleMouseStoppedMovingInContent)(HIBevelButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_HandleMouseUpInContent)(HIBevelButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIBevelButton_TakeUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_ReleaseUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIBevelButton_HasUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIBevelButton_CanReleaseUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_SetUserInputFocusFlags)(HIBevelButton *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIBevelButton_GetUserInputFocusFlags)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_SetTitle)(HIBevelButton *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_GetTitle)(HIBevelButton *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIBevelButton_Draw)(HIBevelButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIBevelButton_Erase)(HIBevelButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIBevelButton_Invalidate)(HIBevelButton *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIBevelButton_GetDrawingMode)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_SetDrawingMode)(HIBevelButton *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIBevelButton_SetBackgroundPattern)(HIBevelButton *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIBevelButton_GetBackgroundPattern)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Cut)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Copy)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Paste)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_Clear)(HIBevelButton *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIBevelButton_GetClipboardSupportFlags)(HIBevelButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_AddStateChangeCallback)(HIBevelButton *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_RemoveStateChangeCallback)(HIBevelButton *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIBevelButton_DrawContent)(HIBevelButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIBevelButton_EraseContent)(HIBevelButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIBevelButton_TranslatePoint)(HIBevelButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIBevelButton_TranslateRect)(HIBevelButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIBevelButton_StateChanged)(HIBevelButton *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIBevelButton_SetClipboardSupportFlags)(HIBevelButton *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIBevelButton_Verify)(HIBevelButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIBevelButton_somInit)(HIBevelButton *somSelf);
typedef void (* SOMLINK somTD_HIBevelButton_somUninit)(HIBevelButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIBevelButton_somDuplicateReference)(HIBevelButton *somSelf);
typedef boolean (* SOMLINK somTD_HIBevelButton_somCompareReference)(HIBevelButton *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIBevelButton_somRelease)(HIBevelButton *somSelf);
typedef void (* SOMLINK somTD_HIBevelButton_somFree)(HIBevelButton *somSelf);
typedef boolean (* SOMLINK somTD_HIBevelButton_somCanDelete)(HIBevelButton *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIBevelButton_somGetClass)(HIBevelButton *somSelf);
typedef corbastring (* SOMLINK somTD_HIBevelButton_somGetClassName)(HIBevelButton *somSelf);
typedef long (* SOMLINK somTD_HIBevelButton_somGetSize)(HIBevelButton *somSelf);
typedef boolean (* SOMLINK somTD_HIBevelButton_somIsA)(HIBevelButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIBevelButton_somRespondsTo)(HIBevelButton *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIBevelButton_somIsInstanceOf)(HIBevelButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIBevelButton_somDispatch)(HIBevelButton *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIBevelButton_somClassDispatch)(HIBevelButton *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIBevelButton_somCastObj)(HIBevelButton *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIBevelButton_somResetObj)(HIBevelButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIBevelButton_somPrintSelf)(HIBevelButton *somSelf);
typedef void (* SOMLINK somTD_HIBevelButton_somDumpSelf)(HIBevelButton *somSelf,
long level);
typedef void (* SOMLINK somTD_HIBevelButton_somDumpSelfInt)(HIBevelButton *somSelf,
long level);
}
#endif /* HIBevelButton_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIBevelButton
*/
class HIBevelButton : public HIControl
{
public:
// HIBevelButton::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIBevelButton, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIBevelButton);
}
// HIBevelButton::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitBevelButton */
OSStatus InitBevelButton(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
HIControlBehavior behavior)
{
return SOM_ResolveD(this,HIBevelButton,HIBevelButton,InitBevelButton)
(this,ev,identifier,window,bounds,behavior);
}
/* method: SetBehavior */
void SetBehavior(Environment *ev,
HIControlBehavior newBehavior)
{
SOM_ResolveD(this,HIBevelButton,HIBevelButton,SetBehavior)
(this,ev,newBehavior);
}
/* method: GetBehavior */
HIControlBehavior GetBehavior(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIBevelButton,GetBehavior)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIBevelButton,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIBevelButton,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIBevelButton,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIBevelButton,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIBevelButton,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIBevelButton,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIBevelButton,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIBevelButton,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIBevelButton,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIBevelButton,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIBevelButton,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIBevelButton,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIBevelButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIBevelButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIBevelButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIBevelButton,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIBevelButton,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIBevelButton,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIBevelButton,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIBevelButton,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIBevelButton,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIBevelButton,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIBevelButton,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIBevelButton,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIBevelButton,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIBevelButton_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIBevelButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIBevelButton_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIBevelButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIBevelButton,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIBevelButton,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIBevelButton,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIBevelButton */
#endif /* SOM_HIBevelButton_xh */
#ifndef SOM_HICheckBox_xh
#define SOM_HICheckBox_xh
class HICheckBox;
#define HICheckBox_MajorVersion 0
#define HICheckBox_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HICheckBox_API
#define HICheckBox_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HICheckBoxCClassData HICheckBoxClassData
#define HICheckBoxNewClass(major,minor) somNewVersionedClassReference(HICheckBox,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HICheckBoxMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HICheckBox class object, and the methods it introduces. */
SOMEXTERN struct HICheckBoxClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitCheckBox;
} SOMDLINK HICheckBoxClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HICheckBox_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HICheckBoxClassData
#endif
#endif
/*
* -- Typedefs for HICheckBox Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HICheckBox_InitCheckBox)(HICheckBox *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HICheckBox_InitControl)(HICheckBox *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HICheckBox_SetValue)(HICheckBox *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HICheckBox_GetValue)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_SetMinimum)(HICheckBox *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HICheckBox_GetMinimum)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_SetMaximum)(HICheckBox *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HICheckBox_GetMaximum)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_SimulateSelection)(HICheckBox *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HICheckBox_GetEmbeddingParent)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_InitPanel)(HICheckBox *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HICheckBox_RegisterInterestInAppleEvent)(HICheckBox *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HICheckBox_HasValidContent)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_GetDeepCollectionItemData)(HICheckBox *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HICheckBox_GetWindow)(HICheckBox *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HICheckBox_GetPort)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_GetRefLabel)(HICheckBox *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HICheckBox_GetCollection)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_Init)(HICheckBox *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HICheckBox_Terminate)(HICheckBox *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HICheckBox_Clone)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Release)(HICheckBox *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HICheckBox_GetOwnerCount)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_InitFromAERecord)(HICheckBox *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HICheckBox_WriteToAERecord)(HICheckBox *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HICheckBox_CalculateOptimalSize)(HICheckBox *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HICheckBox_GetBoundingRect)(HICheckBox *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HICheckBox_SetBoundingRect)(HICheckBox *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HICheckBox_SetPosition)(HICheckBox *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HICheckBox_SetSize)(HICheckBox *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HICheckBox_GetUpdateRect)(HICheckBox *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HICheckBox_Enable)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Disable)(HICheckBox *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HICheckBox_IsEnabled)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Show)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Hide)(HICheckBox *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HICheckBox_IsVisible)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleAppleEvent)(HICheckBox *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleActivate)(HICheckBox *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleDeactivate)(HICheckBox *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleNavigation)(HICheckBox *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleMouseDownInContent)(HICheckBox *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleMouseMovedInContent)(HICheckBox *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleMouseStoppedMovingInContent)(HICheckBox *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_HandleMouseUpInContent)(HICheckBox *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HICheckBox_TakeUserInputFocus)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_ReleaseUserInputFocus)(HICheckBox *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HICheckBox_HasUserInputFocus)(HICheckBox *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HICheckBox_CanReleaseUserInputFocus)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_SetUserInputFocusFlags)(HICheckBox *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HICheckBox_GetUserInputFocusFlags)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_SetTitle)(HICheckBox *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HICheckBox_GetTitle)(HICheckBox *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HICheckBox_Draw)(HICheckBox *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HICheckBox_Erase)(HICheckBox *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HICheckBox_Invalidate)(HICheckBox *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HICheckBox_GetDrawingMode)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_SetDrawingMode)(HICheckBox *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HICheckBox_SetBackgroundPattern)(HICheckBox *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HICheckBox_GetBackgroundPattern)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Cut)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Copy)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Paste)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_Clear)(HICheckBox *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HICheckBox_GetClipboardSupportFlags)(HICheckBox *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HICheckBox_AddStateChangeCallback)(HICheckBox *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HICheckBox_RemoveStateChangeCallback)(HICheckBox *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HICheckBox_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HICheckBox_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HICheckBox_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HICheckBox_DrawContent)(HICheckBox *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HICheckBox_EraseContent)(HICheckBox *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HICheckBox_TranslatePoint)(HICheckBox *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HICheckBox_TranslateRect)(HICheckBox *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HICheckBox_StateChanged)(HICheckBox *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HICheckBox_SetClipboardSupportFlags)(HICheckBox *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HICheckBox_Verify)(HICheckBox *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HICheckBox_somInit)(HICheckBox *somSelf);
typedef void (* SOMLINK somTD_HICheckBox_somUninit)(HICheckBox *somSelf);
typedef SOMObject* (* SOMLINK somTD_HICheckBox_somDuplicateReference)(HICheckBox *somSelf);
typedef boolean (* SOMLINK somTD_HICheckBox_somCompareReference)(HICheckBox *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HICheckBox_somRelease)(HICheckBox *somSelf);
typedef void (* SOMLINK somTD_HICheckBox_somFree)(HICheckBox *somSelf);
typedef boolean (* SOMLINK somTD_HICheckBox_somCanDelete)(HICheckBox *somSelf);
typedef SOMClass* (* SOMLINK somTD_HICheckBox_somGetClass)(HICheckBox *somSelf);
typedef corbastring (* SOMLINK somTD_HICheckBox_somGetClassName)(HICheckBox *somSelf);
typedef long (* SOMLINK somTD_HICheckBox_somGetSize)(HICheckBox *somSelf);
typedef boolean (* SOMLINK somTD_HICheckBox_somIsA)(HICheckBox *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HICheckBox_somRespondsTo)(HICheckBox *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HICheckBox_somIsInstanceOf)(HICheckBox *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HICheckBox_somDispatch)(HICheckBox *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HICheckBox_somClassDispatch)(HICheckBox *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HICheckBox_somCastObj)(HICheckBox *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HICheckBox_somResetObj)(HICheckBox *somSelf);
typedef SOMObject* (* SOMLINK somTD_HICheckBox_somPrintSelf)(HICheckBox *somSelf);
typedef void (* SOMLINK somTD_HICheckBox_somDumpSelf)(HICheckBox *somSelf,
long level);
typedef void (* SOMLINK somTD_HICheckBox_somDumpSelfInt)(HICheckBox *somSelf,
long level);
}
#endif /* HICheckBox_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HICheckBox
*/
class HICheckBox : public HIControl
{
public:
// HICheckBox::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HICheckBox, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HICheckBox);
}
// HICheckBox::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitCheckBox */
OSStatus InitCheckBox(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HICheckBox,HICheckBox,InitCheckBox)
(this,ev,identifier,window,bounds);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HICheckBox,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HICheckBox,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HICheckBox,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HICheckBox,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HICheckBox,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HICheckBox,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HICheckBox,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HICheckBox,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HICheckBox,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HICheckBox,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HICheckBox,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HICheckBox,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HICheckBox,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HICheckBox,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HICheckBox,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HICheckBox,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HICheckBox,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HICheckBox,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HICheckBox,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HICheckBox,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HICheckBox_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HICheckBox_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HICheckBox_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HICheckBox,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HICheckBox,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HICheckBox,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HICheckBox,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HICheckBox,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HICheckBox,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HICheckBox,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HICheckBox,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HICheckBox,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HICheckBox,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HICheckBox_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HICheckBox,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HICheckBox_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HICheckBox,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HICheckBox,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HICheckBox,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HICheckBox,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HICheckBox */
#endif /* SOM_HICheckBox_xh */
#ifndef SOM_HIRadioButton_xh
#define SOM_HIRadioButton_xh
class HIRadioButton;
#define HIRadioButton_MajorVersion 0
#define HIRadioButton_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIRadioButton_API
#define HIRadioButton_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIRadioButtonCClassData HIRadioButtonClassData
#define HIRadioButtonNewClass(major,minor) somNewVersionedClassReference(HIRadioButton,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIRadioButtonMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIRadioButton class object, and the methods it introduces. */
SOMEXTERN struct HIRadioButtonClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitRadioButton;
} SOMDLINK HIRadioButtonClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIRadioButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIRadioButtonClassData
#endif
#endif
/*
* -- Typedefs for HIRadioButton Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIRadioButton_InitRadioButton)(HIRadioButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIRadioButton_InitControl)(HIRadioButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIRadioButton_SetValue)(HIRadioButton *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIRadioButton_GetValue)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_SetMinimum)(HIRadioButton *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIRadioButton_GetMinimum)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_SetMaximum)(HIRadioButton *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIRadioButton_GetMaximum)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_SimulateSelection)(HIRadioButton *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIRadioButton_GetEmbeddingParent)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_InitPanel)(HIRadioButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_RegisterInterestInAppleEvent)(HIRadioButton *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIRadioButton_HasValidContent)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_GetDeepCollectionItemData)(HIRadioButton *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIRadioButton_GetWindow)(HIRadioButton *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIRadioButton_GetPort)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_GetRefLabel)(HIRadioButton *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIRadioButton_GetCollection)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_Init)(HIRadioButton *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIRadioButton_Terminate)(HIRadioButton *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIRadioButton_Clone)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Release)(HIRadioButton *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIRadioButton_GetOwnerCount)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_InitFromAERecord)(HIRadioButton *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_WriteToAERecord)(HIRadioButton *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIRadioButton_CalculateOptimalSize)(HIRadioButton *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIRadioButton_GetBoundingRect)(HIRadioButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIRadioButton_SetBoundingRect)(HIRadioButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIRadioButton_SetPosition)(HIRadioButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIRadioButton_SetSize)(HIRadioButton *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIRadioButton_GetUpdateRect)(HIRadioButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIRadioButton_Enable)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Disable)(HIRadioButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIRadioButton_IsEnabled)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Show)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Hide)(HIRadioButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIRadioButton_IsVisible)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleAppleEvent)(HIRadioButton *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleActivate)(HIRadioButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleDeactivate)(HIRadioButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleNavigation)(HIRadioButton *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleMouseDownInContent)(HIRadioButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleMouseMovedInContent)(HIRadioButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleMouseStoppedMovingInContent)(HIRadioButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_HandleMouseUpInContent)(HIRadioButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIRadioButton_TakeUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_ReleaseUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIRadioButton_HasUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIRadioButton_CanReleaseUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_SetUserInputFocusFlags)(HIRadioButton *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIRadioButton_GetUserInputFocusFlags)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_SetTitle)(HIRadioButton *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_GetTitle)(HIRadioButton *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIRadioButton_Draw)(HIRadioButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIRadioButton_Erase)(HIRadioButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIRadioButton_Invalidate)(HIRadioButton *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIRadioButton_GetDrawingMode)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_SetDrawingMode)(HIRadioButton *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIRadioButton_SetBackgroundPattern)(HIRadioButton *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIRadioButton_GetBackgroundPattern)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Cut)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Copy)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Paste)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_Clear)(HIRadioButton *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIRadioButton_GetClipboardSupportFlags)(HIRadioButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_AddStateChangeCallback)(HIRadioButton *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_RemoveStateChangeCallback)(HIRadioButton *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIRadioButton_DrawContent)(HIRadioButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIRadioButton_EraseContent)(HIRadioButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIRadioButton_TranslatePoint)(HIRadioButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIRadioButton_TranslateRect)(HIRadioButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIRadioButton_StateChanged)(HIRadioButton *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIRadioButton_SetClipboardSupportFlags)(HIRadioButton *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIRadioButton_Verify)(HIRadioButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIRadioButton_somInit)(HIRadioButton *somSelf);
typedef void (* SOMLINK somTD_HIRadioButton_somUninit)(HIRadioButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIRadioButton_somDuplicateReference)(HIRadioButton *somSelf);
typedef boolean (* SOMLINK somTD_HIRadioButton_somCompareReference)(HIRadioButton *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIRadioButton_somRelease)(HIRadioButton *somSelf);
typedef void (* SOMLINK somTD_HIRadioButton_somFree)(HIRadioButton *somSelf);
typedef boolean (* SOMLINK somTD_HIRadioButton_somCanDelete)(HIRadioButton *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIRadioButton_somGetClass)(HIRadioButton *somSelf);
typedef corbastring (* SOMLINK somTD_HIRadioButton_somGetClassName)(HIRadioButton *somSelf);
typedef long (* SOMLINK somTD_HIRadioButton_somGetSize)(HIRadioButton *somSelf);
typedef boolean (* SOMLINK somTD_HIRadioButton_somIsA)(HIRadioButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIRadioButton_somRespondsTo)(HIRadioButton *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIRadioButton_somIsInstanceOf)(HIRadioButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIRadioButton_somDispatch)(HIRadioButton *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIRadioButton_somClassDispatch)(HIRadioButton *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIRadioButton_somCastObj)(HIRadioButton *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIRadioButton_somResetObj)(HIRadioButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIRadioButton_somPrintSelf)(HIRadioButton *somSelf);
typedef void (* SOMLINK somTD_HIRadioButton_somDumpSelf)(HIRadioButton *somSelf,
long level);
typedef void (* SOMLINK somTD_HIRadioButton_somDumpSelfInt)(HIRadioButton *somSelf,
long level);
}
#endif /* HIRadioButton_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIRadioButton
*/
class HIRadioButton : public HIControl
{
public:
// HIRadioButton::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIRadioButton, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIRadioButton);
}
// HIRadioButton::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitRadioButton */
OSStatus InitRadioButton(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIRadioButton,HIRadioButton,InitRadioButton)
(this,ev,identifier,window,bounds);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIRadioButton,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIRadioButton,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIRadioButton,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIRadioButton,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIRadioButton,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIRadioButton,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIRadioButton,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIRadioButton,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIRadioButton,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIRadioButton,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIRadioButton,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIRadioButton,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIRadioButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIRadioButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIRadioButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIRadioButton,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIRadioButton,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIRadioButton,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIRadioButton,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIRadioButton,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIRadioButton,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIRadioButton,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIRadioButton,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIRadioButton,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIRadioButton,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIRadioButton_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIRadioButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIRadioButton_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIRadioButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIRadioButton,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIRadioButton,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIRadioButton,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIRadioButton */
#endif /* SOM_HIRadioButton_xh */
#ifndef SOM_HIDisclosureTriangle_xh
#define SOM_HIDisclosureTriangle_xh
class HIDisclosureTriangle;
#define HIDisclosureTriangle_MajorVersion 0
#define HIDisclosureTriangle_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIDisclosureTriangle_API
#define HIDisclosureTriangle_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIDisclosureTriangleCClassData HIDisclosureTriangleClassData
#define HIDisclosureTriangleNewClass(major,minor) somNewVersionedClassReference(HIDisclosureTriangle,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIDisclosureTriangleMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIDisclosureTriangle class object, and the methods it introduces. */
SOMEXTERN struct HIDisclosureTriangleClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitDisclosureTriangle;
somMToken IsDisclosed;
} SOMDLINK HIDisclosureTriangleClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIDisclosureTriangle_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIDisclosureTriangleClassData
#endif
#endif
/*
* -- Typedefs for HIDisclosureTriangle Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_InitDisclosureTriangle)(HIDisclosureTriangle *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Point* anchor);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_IsDisclosed)(HIDisclosureTriangle *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_InitControl)(HIDisclosureTriangle *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetValue)(HIDisclosureTriangle *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIDisclosureTriangle_GetValue)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetMinimum)(HIDisclosureTriangle *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIDisclosureTriangle_GetMinimum)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetMaximum)(HIDisclosureTriangle *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIDisclosureTriangle_GetMaximum)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SimulateSelection)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIDisclosureTriangle_GetEmbeddingParent)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_InitPanel)(HIDisclosureTriangle *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_RegisterInterestInAppleEvent)(HIDisclosureTriangle *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_HasValidContent)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_GetDeepCollectionItemData)(HIDisclosureTriangle *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIDisclosureTriangle_GetWindow)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIDisclosureTriangle_GetPort)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_GetRefLabel)(HIDisclosureTriangle *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIDisclosureTriangle_GetCollection)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_Init)(HIDisclosureTriangle *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Terminate)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIDisclosureTriangle_Clone)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Release)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIDisclosureTriangle_GetOwnerCount)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_InitFromAERecord)(HIDisclosureTriangle *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_WriteToAERecord)(HIDisclosureTriangle *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_CalculateOptimalSize)(HIDisclosureTriangle *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_GetBoundingRect)(HIDisclosureTriangle *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetBoundingRect)(HIDisclosureTriangle *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetPosition)(HIDisclosureTriangle *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetSize)(HIDisclosureTriangle *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_GetUpdateRect)(HIDisclosureTriangle *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Enable)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Disable)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_IsEnabled)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Show)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Hide)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_IsVisible)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleAppleEvent)(HIDisclosureTriangle *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleActivate)(HIDisclosureTriangle *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleDeactivate)(HIDisclosureTriangle *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleNavigation)(HIDisclosureTriangle *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseDownInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseMovedInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseStoppedMovingInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseUpInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_TakeUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_ReleaseUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_HasUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_CanReleaseUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetUserInputFocusFlags)(HIDisclosureTriangle *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIDisclosureTriangle_GetUserInputFocusFlags)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_SetTitle)(HIDisclosureTriangle *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_GetTitle)(HIDisclosureTriangle *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Draw)(HIDisclosureTriangle *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Erase)(HIDisclosureTriangle *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Invalidate)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIDisclosureTriangle_GetDrawingMode)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetDrawingMode)(HIDisclosureTriangle *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetBackgroundPattern)(HIDisclosureTriangle *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIDisclosureTriangle_GetBackgroundPattern)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Cut)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Copy)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Paste)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_Clear)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIDisclosureTriangle_GetClipboardSupportFlags)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_AddStateChangeCallback)(HIDisclosureTriangle *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_RemoveStateChangeCallback)(HIDisclosureTriangle *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_DrawContent)(HIDisclosureTriangle *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_EraseContent)(HIDisclosureTriangle *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_TranslatePoint)(HIDisclosureTriangle *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_TranslateRect)(HIDisclosureTriangle *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_StateChanged)(HIDisclosureTriangle *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_SetClipboardSupportFlags)(HIDisclosureTriangle *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIDisclosureTriangle_Verify)(HIDisclosureTriangle *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_somInit)(HIDisclosureTriangle *somSelf);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_somUninit)(HIDisclosureTriangle *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIDisclosureTriangle_somDuplicateReference)(HIDisclosureTriangle *somSelf);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somCompareReference)(HIDisclosureTriangle *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIDisclosureTriangle_somRelease)(HIDisclosureTriangle *somSelf);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_somFree)(HIDisclosureTriangle *somSelf);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somCanDelete)(HIDisclosureTriangle *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIDisclosureTriangle_somGetClass)(HIDisclosureTriangle *somSelf);
typedef corbastring (* SOMLINK somTD_HIDisclosureTriangle_somGetClassName)(HIDisclosureTriangle *somSelf);
typedef long (* SOMLINK somTD_HIDisclosureTriangle_somGetSize)(HIDisclosureTriangle *somSelf);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somIsA)(HIDisclosureTriangle *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somRespondsTo)(HIDisclosureTriangle *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somIsInstanceOf)(HIDisclosureTriangle *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somDispatch)(HIDisclosureTriangle *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somClassDispatch)(HIDisclosureTriangle *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somCastObj)(HIDisclosureTriangle *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIDisclosureTriangle_somResetObj)(HIDisclosureTriangle *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIDisclosureTriangle_somPrintSelf)(HIDisclosureTriangle *somSelf);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_somDumpSelf)(HIDisclosureTriangle *somSelf,
long level);
typedef void (* SOMLINK somTD_HIDisclosureTriangle_somDumpSelfInt)(HIDisclosureTriangle *somSelf,
long level);
}
#endif /* HIDisclosureTriangle_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIDisclosureTriangle
*/
class HIDisclosureTriangle : public HIControl
{
public:
// HIDisclosureTriangle::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIDisclosureTriangle, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIDisclosureTriangle);
}
// HIDisclosureTriangle::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitDisclosureTriangle */
OSStatus InitDisclosureTriangle(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Point* anchor)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIDisclosureTriangle,InitDisclosureTriangle)
(this,ev,identifier,window,anchor);
}
/* method: IsDisclosed */
boolean IsDisclosed(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIDisclosureTriangle,IsDisclosed)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIDisclosureTriangle_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIDisclosureTriangle_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIDisclosureTriangle_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIDisclosureTriangle_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIDisclosureTriangle_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIDisclosureTriangle */
#endif /* SOM_HIDisclosureTriangle_xh */
#ifndef SOM_HIScrollBar_xh
#define SOM_HIScrollBar_xh
class HIScrollBar;
#define HIScrollBar_MajorVersion 0
#define HIScrollBar_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIScrollBar_API
#define HIScrollBar_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIScrollBarCClassData HIScrollBarClassData
#define HIScrollBarNewClass(major,minor) somNewVersionedClassReference(HIScrollBar,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIScrollBarMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIScrollBar class object, and the methods it introduces. */
SOMEXTERN struct HIScrollBarClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitScrollBar;
somMToken SetArrowDelta;
somMToken GetArrowDelta;
somMToken SetPageDelta;
somMToken GetPageDelta;
} SOMDLINK HIScrollBarClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIScrollBar_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIScrollBarClassData
#endif
#endif
/*
* -- Typedefs for HIScrollBar Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIScrollBar_InitScrollBar)(HIScrollBar *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIScrollBar_SetArrowDelta)(HIScrollBar *somSelf, Environment *ev,
UInt32 delta);
typedef UInt32 (* SOMLINK somTD_HIScrollBar_GetArrowDelta)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_SetPageDelta)(HIScrollBar *somSelf, Environment *ev,
UInt32 delta);
typedef UInt32 (* SOMLINK somTD_HIScrollBar_GetPageDelta)(HIScrollBar *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIScrollBar_InitControl)(HIScrollBar *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIScrollBar_SetValue)(HIScrollBar *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIScrollBar_GetValue)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_SetMinimum)(HIScrollBar *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIScrollBar_GetMinimum)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_SetMaximum)(HIScrollBar *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIScrollBar_GetMaximum)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_SimulateSelection)(HIScrollBar *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIScrollBar_GetEmbeddingParent)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_InitPanel)(HIScrollBar *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_RegisterInterestInAppleEvent)(HIScrollBar *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIScrollBar_HasValidContent)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_GetDeepCollectionItemData)(HIScrollBar *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIScrollBar_GetWindow)(HIScrollBar *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIScrollBar_GetPort)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_GetRefLabel)(HIScrollBar *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIScrollBar_GetCollection)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_Init)(HIScrollBar *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIScrollBar_Terminate)(HIScrollBar *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIScrollBar_Clone)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Release)(HIScrollBar *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIScrollBar_GetOwnerCount)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_InitFromAERecord)(HIScrollBar *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_WriteToAERecord)(HIScrollBar *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIScrollBar_CalculateOptimalSize)(HIScrollBar *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIScrollBar_GetBoundingRect)(HIScrollBar *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIScrollBar_SetBoundingRect)(HIScrollBar *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIScrollBar_SetPosition)(HIScrollBar *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIScrollBar_SetSize)(HIScrollBar *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIScrollBar_GetUpdateRect)(HIScrollBar *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIScrollBar_Enable)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Disable)(HIScrollBar *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIScrollBar_IsEnabled)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Show)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Hide)(HIScrollBar *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIScrollBar_IsVisible)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleAppleEvent)(HIScrollBar *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleActivate)(HIScrollBar *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleDeactivate)(HIScrollBar *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleNavigation)(HIScrollBar *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleMouseDownInContent)(HIScrollBar *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleMouseMovedInContent)(HIScrollBar *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleMouseStoppedMovingInContent)(HIScrollBar *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_HandleMouseUpInContent)(HIScrollBar *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIScrollBar_TakeUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_ReleaseUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIScrollBar_HasUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIScrollBar_CanReleaseUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_SetUserInputFocusFlags)(HIScrollBar *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIScrollBar_GetUserInputFocusFlags)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_SetTitle)(HIScrollBar *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_GetTitle)(HIScrollBar *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIScrollBar_Draw)(HIScrollBar *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIScrollBar_Erase)(HIScrollBar *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIScrollBar_Invalidate)(HIScrollBar *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIScrollBar_GetDrawingMode)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_SetDrawingMode)(HIScrollBar *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIScrollBar_SetBackgroundPattern)(HIScrollBar *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIScrollBar_GetBackgroundPattern)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Cut)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Copy)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Paste)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_Clear)(HIScrollBar *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIScrollBar_GetClipboardSupportFlags)(HIScrollBar *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_AddStateChangeCallback)(HIScrollBar *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_RemoveStateChangeCallback)(HIScrollBar *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIScrollBar_DrawContent)(HIScrollBar *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIScrollBar_EraseContent)(HIScrollBar *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIScrollBar_TranslatePoint)(HIScrollBar *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIScrollBar_TranslateRect)(HIScrollBar *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIScrollBar_StateChanged)(HIScrollBar *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIScrollBar_SetClipboardSupportFlags)(HIScrollBar *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIScrollBar_Verify)(HIScrollBar *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIScrollBar_somInit)(HIScrollBar *somSelf);
typedef void (* SOMLINK somTD_HIScrollBar_somUninit)(HIScrollBar *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIScrollBar_somDuplicateReference)(HIScrollBar *somSelf);
typedef boolean (* SOMLINK somTD_HIScrollBar_somCompareReference)(HIScrollBar *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIScrollBar_somRelease)(HIScrollBar *somSelf);
typedef void (* SOMLINK somTD_HIScrollBar_somFree)(HIScrollBar *somSelf);
typedef boolean (* SOMLINK somTD_HIScrollBar_somCanDelete)(HIScrollBar *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIScrollBar_somGetClass)(HIScrollBar *somSelf);
typedef corbastring (* SOMLINK somTD_HIScrollBar_somGetClassName)(HIScrollBar *somSelf);
typedef long (* SOMLINK somTD_HIScrollBar_somGetSize)(HIScrollBar *somSelf);
typedef boolean (* SOMLINK somTD_HIScrollBar_somIsA)(HIScrollBar *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIScrollBar_somRespondsTo)(HIScrollBar *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIScrollBar_somIsInstanceOf)(HIScrollBar *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIScrollBar_somDispatch)(HIScrollBar *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIScrollBar_somClassDispatch)(HIScrollBar *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIScrollBar_somCastObj)(HIScrollBar *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIScrollBar_somResetObj)(HIScrollBar *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIScrollBar_somPrintSelf)(HIScrollBar *somSelf);
typedef void (* SOMLINK somTD_HIScrollBar_somDumpSelf)(HIScrollBar *somSelf,
long level);
typedef void (* SOMLINK somTD_HIScrollBar_somDumpSelfInt)(HIScrollBar *somSelf,
long level);
}
#endif /* HIScrollBar_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIScrollBar
*/
class HIScrollBar : public HIControl
{
public:
// HIScrollBar::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIScrollBar, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIScrollBar);
}
// HIScrollBar::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitScrollBar */
OSStatus InitScrollBar(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIScrollBar,HIScrollBar,InitScrollBar)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetArrowDelta */
void SetArrowDelta(Environment *ev,
UInt32 delta)
{
SOM_ResolveD(this,HIScrollBar,HIScrollBar,SetArrowDelta)
(this,ev,delta);
}
/* method: GetArrowDelta */
UInt32 GetArrowDelta(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIScrollBar,GetArrowDelta)
(this,ev);
}
/* method: SetPageDelta */
void SetPageDelta(Environment *ev,
UInt32 delta)
{
SOM_ResolveD(this,HIScrollBar,HIScrollBar,SetPageDelta)
(this,ev,delta);
}
/* method: GetPageDelta */
UInt32 GetPageDelta(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIScrollBar,GetPageDelta)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIScrollBar,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIScrollBar,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIScrollBar,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIScrollBar,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIScrollBar,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIScrollBar,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIScrollBar,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIScrollBar,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIScrollBar,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIScrollBar,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIScrollBar,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIScrollBar,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIScrollBar_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIScrollBar_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIScrollBar_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIScrollBar,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIScrollBar,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIScrollBar,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIScrollBar,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIScrollBar,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIScrollBar,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIScrollBar,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIScrollBar,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIScrollBar,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIScrollBar,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIScrollBar_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIScrollBar,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIScrollBar_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIScrollBar,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIScrollBar,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIScrollBar,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIScrollBar,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIScrollBar */
#endif /* SOM_HIScrollBar_xh */
#ifndef SOM_HISlider_xh
#define SOM_HISlider_xh
class HISlider;
#define HISlider_MajorVersion 0
#define HISlider_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HISlider_API
#define HISlider_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HISliderCClassData HISliderClassData
#define HISliderNewClass(major,minor) somNewVersionedClassReference(HISlider,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HISliderMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HISlider class object, and the methods it introduces. */
SOMEXTERN struct HISliderClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitSlider;
} SOMDLINK HISliderClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HISlider_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HISliderClassData
#endif
#endif
/*
* -- Typedefs for HISlider Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HISlider_InitSlider)(HISlider *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HISlider_InitControl)(HISlider *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HISlider_SetValue)(HISlider *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HISlider_GetValue)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_SetMinimum)(HISlider *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HISlider_GetMinimum)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_SetMaximum)(HISlider *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HISlider_GetMaximum)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_SimulateSelection)(HISlider *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HISlider_GetEmbeddingParent)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_InitPanel)(HISlider *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HISlider_RegisterInterestInAppleEvent)(HISlider *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HISlider_HasValidContent)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_GetDeepCollectionItemData)(HISlider *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HISlider_GetWindow)(HISlider *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HISlider_GetPort)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_GetRefLabel)(HISlider *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HISlider_GetCollection)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_Init)(HISlider *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HISlider_Terminate)(HISlider *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HISlider_Clone)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Release)(HISlider *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HISlider_GetOwnerCount)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_InitFromAERecord)(HISlider *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HISlider_WriteToAERecord)(HISlider *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HISlider_CalculateOptimalSize)(HISlider *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HISlider_GetBoundingRect)(HISlider *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HISlider_SetBoundingRect)(HISlider *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HISlider_SetPosition)(HISlider *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HISlider_SetSize)(HISlider *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HISlider_GetUpdateRect)(HISlider *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HISlider_Enable)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Disable)(HISlider *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HISlider_IsEnabled)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Show)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Hide)(HISlider *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HISlider_IsVisible)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleAppleEvent)(HISlider *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleActivate)(HISlider *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleDeactivate)(HISlider *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleNavigation)(HISlider *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleMouseDownInContent)(HISlider *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleMouseMovedInContent)(HISlider *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleMouseStoppedMovingInContent)(HISlider *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HISlider_HandleMouseUpInContent)(HISlider *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HISlider_TakeUserInputFocus)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_ReleaseUserInputFocus)(HISlider *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HISlider_HasUserInputFocus)(HISlider *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HISlider_CanReleaseUserInputFocus)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_SetUserInputFocusFlags)(HISlider *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HISlider_GetUserInputFocusFlags)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_SetTitle)(HISlider *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HISlider_GetTitle)(HISlider *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HISlider_Draw)(HISlider *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HISlider_Erase)(HISlider *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HISlider_Invalidate)(HISlider *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HISlider_GetDrawingMode)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_SetDrawingMode)(HISlider *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HISlider_SetBackgroundPattern)(HISlider *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HISlider_GetBackgroundPattern)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Cut)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Copy)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Paste)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_Clear)(HISlider *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HISlider_GetClipboardSupportFlags)(HISlider *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HISlider_AddStateChangeCallback)(HISlider *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HISlider_RemoveStateChangeCallback)(HISlider *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HISlider_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HISlider_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HISlider_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HISlider_DrawContent)(HISlider *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HISlider_EraseContent)(HISlider *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HISlider_TranslatePoint)(HISlider *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HISlider_TranslateRect)(HISlider *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HISlider_StateChanged)(HISlider *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HISlider_SetClipboardSupportFlags)(HISlider *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HISlider_Verify)(HISlider *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HISlider_somInit)(HISlider *somSelf);
typedef void (* SOMLINK somTD_HISlider_somUninit)(HISlider *somSelf);
typedef SOMObject* (* SOMLINK somTD_HISlider_somDuplicateReference)(HISlider *somSelf);
typedef boolean (* SOMLINK somTD_HISlider_somCompareReference)(HISlider *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HISlider_somRelease)(HISlider *somSelf);
typedef void (* SOMLINK somTD_HISlider_somFree)(HISlider *somSelf);
typedef boolean (* SOMLINK somTD_HISlider_somCanDelete)(HISlider *somSelf);
typedef SOMClass* (* SOMLINK somTD_HISlider_somGetClass)(HISlider *somSelf);
typedef corbastring (* SOMLINK somTD_HISlider_somGetClassName)(HISlider *somSelf);
typedef long (* SOMLINK somTD_HISlider_somGetSize)(HISlider *somSelf);
typedef boolean (* SOMLINK somTD_HISlider_somIsA)(HISlider *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HISlider_somRespondsTo)(HISlider *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HISlider_somIsInstanceOf)(HISlider *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HISlider_somDispatch)(HISlider *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HISlider_somClassDispatch)(HISlider *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HISlider_somCastObj)(HISlider *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HISlider_somResetObj)(HISlider *somSelf);
typedef SOMObject* (* SOMLINK somTD_HISlider_somPrintSelf)(HISlider *somSelf);
typedef void (* SOMLINK somTD_HISlider_somDumpSelf)(HISlider *somSelf,
long level);
typedef void (* SOMLINK somTD_HISlider_somDumpSelfInt)(HISlider *somSelf,
long level);
}
#endif /* HISlider_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HISlider
*/
class HISlider : public HIControl
{
public:
// HISlider::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HISlider, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HISlider);
}
// HISlider::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitSlider */
OSStatus InitSlider(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HISlider,HISlider,InitSlider)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HISlider,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HISlider,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HISlider,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HISlider,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HISlider,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HISlider,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HISlider,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HISlider,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HISlider,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HISlider,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HISlider,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HISlider,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HISlider,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HISlider,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HISlider,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HISlider,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HISlider,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HISlider,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HISlider,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HISlider,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HISlider,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HISlider,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HISlider,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HISlider,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HISlider,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HISlider,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HISlider,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HISlider,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HISlider_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HISlider_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HISlider_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HISlider,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HISlider,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HISlider,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HISlider,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HISlider,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HISlider,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HISlider,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HISlider,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HISlider,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HISlider,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HISlider,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HISlider,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HISlider,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HISlider,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HISlider,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HISlider,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HISlider,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HISlider,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HISlider,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HISlider,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HISlider_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HISlider,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HISlider,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HISlider_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HISlider,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HISlider,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HISlider,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HISlider,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HISlider,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HISlider,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HISlider,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HISlider */
#endif /* SOM_HISlider_xh */
#ifndef SOM_HILittleArrows_xh
#define SOM_HILittleArrows_xh
class HILittleArrows;
#define HILittleArrows_MajorVersion 0
#define HILittleArrows_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HILittleArrows_API
#define HILittleArrows_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HILittleArrowsCClassData HILittleArrowsClassData
#define HILittleArrowsNewClass(major,minor) somNewVersionedClassReference(HILittleArrows,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HILittleArrowsMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HILittleArrows class object, and the methods it introduces. */
SOMEXTERN struct HILittleArrowsClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitLittleArrows;
somMToken SetArrowDelta;
somMToken GetArrowDelta;
} SOMDLINK HILittleArrowsClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HILittleArrows_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HILittleArrowsClassData
#endif
#endif
/*
* -- Typedefs for HILittleArrows Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HILittleArrows_InitLittleArrows)(HILittleArrows *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Point* anchor,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HILittleArrows_SetArrowDelta)(HILittleArrows *somSelf, Environment *ev,
UInt32 delta);
typedef UInt32 (* SOMLINK somTD_HILittleArrows_GetArrowDelta)(HILittleArrows *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HILittleArrows_InitControl)(HILittleArrows *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HILittleArrows_SetValue)(HILittleArrows *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HILittleArrows_GetValue)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_SetMinimum)(HILittleArrows *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HILittleArrows_GetMinimum)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_SetMaximum)(HILittleArrows *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HILittleArrows_GetMaximum)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_SimulateSelection)(HILittleArrows *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HILittleArrows_GetEmbeddingParent)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_InitPanel)(HILittleArrows *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_RegisterInterestInAppleEvent)(HILittleArrows *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HILittleArrows_HasValidContent)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_GetDeepCollectionItemData)(HILittleArrows *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HILittleArrows_GetWindow)(HILittleArrows *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HILittleArrows_GetPort)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_GetRefLabel)(HILittleArrows *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HILittleArrows_GetCollection)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_Init)(HILittleArrows *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HILittleArrows_Terminate)(HILittleArrows *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HILittleArrows_Clone)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Release)(HILittleArrows *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HILittleArrows_GetOwnerCount)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_InitFromAERecord)(HILittleArrows *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_WriteToAERecord)(HILittleArrows *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HILittleArrows_CalculateOptimalSize)(HILittleArrows *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HILittleArrows_GetBoundingRect)(HILittleArrows *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HILittleArrows_SetBoundingRect)(HILittleArrows *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HILittleArrows_SetPosition)(HILittleArrows *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HILittleArrows_SetSize)(HILittleArrows *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HILittleArrows_GetUpdateRect)(HILittleArrows *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HILittleArrows_Enable)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Disable)(HILittleArrows *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HILittleArrows_IsEnabled)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Show)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Hide)(HILittleArrows *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HILittleArrows_IsVisible)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleAppleEvent)(HILittleArrows *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleActivate)(HILittleArrows *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleDeactivate)(HILittleArrows *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleNavigation)(HILittleArrows *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleMouseDownInContent)(HILittleArrows *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleMouseMovedInContent)(HILittleArrows *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleMouseStoppedMovingInContent)(HILittleArrows *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_HandleMouseUpInContent)(HILittleArrows *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HILittleArrows_TakeUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_ReleaseUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HILittleArrows_HasUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HILittleArrows_CanReleaseUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_SetUserInputFocusFlags)(HILittleArrows *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HILittleArrows_GetUserInputFocusFlags)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_SetTitle)(HILittleArrows *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_GetTitle)(HILittleArrows *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HILittleArrows_Draw)(HILittleArrows *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HILittleArrows_Erase)(HILittleArrows *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HILittleArrows_Invalidate)(HILittleArrows *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HILittleArrows_GetDrawingMode)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_SetDrawingMode)(HILittleArrows *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HILittleArrows_SetBackgroundPattern)(HILittleArrows *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HILittleArrows_GetBackgroundPattern)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Cut)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Copy)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Paste)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_Clear)(HILittleArrows *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HILittleArrows_GetClipboardSupportFlags)(HILittleArrows *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_AddStateChangeCallback)(HILittleArrows *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_RemoveStateChangeCallback)(HILittleArrows *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HILittleArrows_DrawContent)(HILittleArrows *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HILittleArrows_EraseContent)(HILittleArrows *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HILittleArrows_TranslatePoint)(HILittleArrows *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HILittleArrows_TranslateRect)(HILittleArrows *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HILittleArrows_StateChanged)(HILittleArrows *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HILittleArrows_SetClipboardSupportFlags)(HILittleArrows *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HILittleArrows_Verify)(HILittleArrows *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HILittleArrows_somInit)(HILittleArrows *somSelf);
typedef void (* SOMLINK somTD_HILittleArrows_somUninit)(HILittleArrows *somSelf);
typedef SOMObject* (* SOMLINK somTD_HILittleArrows_somDuplicateReference)(HILittleArrows *somSelf);
typedef boolean (* SOMLINK somTD_HILittleArrows_somCompareReference)(HILittleArrows *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HILittleArrows_somRelease)(HILittleArrows *somSelf);
typedef void (* SOMLINK somTD_HILittleArrows_somFree)(HILittleArrows *somSelf);
typedef boolean (* SOMLINK somTD_HILittleArrows_somCanDelete)(HILittleArrows *somSelf);
typedef SOMClass* (* SOMLINK somTD_HILittleArrows_somGetClass)(HILittleArrows *somSelf);
typedef corbastring (* SOMLINK somTD_HILittleArrows_somGetClassName)(HILittleArrows *somSelf);
typedef long (* SOMLINK somTD_HILittleArrows_somGetSize)(HILittleArrows *somSelf);
typedef boolean (* SOMLINK somTD_HILittleArrows_somIsA)(HILittleArrows *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HILittleArrows_somRespondsTo)(HILittleArrows *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HILittleArrows_somIsInstanceOf)(HILittleArrows *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HILittleArrows_somDispatch)(HILittleArrows *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HILittleArrows_somClassDispatch)(HILittleArrows *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HILittleArrows_somCastObj)(HILittleArrows *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HILittleArrows_somResetObj)(HILittleArrows *somSelf);
typedef SOMObject* (* SOMLINK somTD_HILittleArrows_somPrintSelf)(HILittleArrows *somSelf);
typedef void (* SOMLINK somTD_HILittleArrows_somDumpSelf)(HILittleArrows *somSelf,
long level);
typedef void (* SOMLINK somTD_HILittleArrows_somDumpSelfInt)(HILittleArrows *somSelf,
long level);
}
#endif /* HILittleArrows_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HILittleArrows
*/
class HILittleArrows : public HIControl
{
public:
// HILittleArrows::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HILittleArrows, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HILittleArrows);
}
// HILittleArrows::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitLittleArrows */
OSStatus InitLittleArrows(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Point* anchor,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HILittleArrows,HILittleArrows,InitLittleArrows)
(this,ev,identifier,window,anchor,value,minimumValue,maximumValue);
}
/* method: SetArrowDelta */
void SetArrowDelta(Environment *ev,
UInt32 delta)
{
SOM_ResolveD(this,HILittleArrows,HILittleArrows,SetArrowDelta)
(this,ev,delta);
}
/* method: GetArrowDelta */
UInt32 GetArrowDelta(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HILittleArrows,GetArrowDelta)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HILittleArrows,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HILittleArrows,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HILittleArrows,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HILittleArrows,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HILittleArrows,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HILittleArrows,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HILittleArrows,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HILittleArrows,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HILittleArrows,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HILittleArrows,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HILittleArrows,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HILittleArrows,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HILittleArrows_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HILittleArrows_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HILittleArrows_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HILittleArrows,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HILittleArrows,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HILittleArrows,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HILittleArrows,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HILittleArrows,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HILittleArrows,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HILittleArrows,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HILittleArrows,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HILittleArrows,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HILittleArrows,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HILittleArrows_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HILittleArrows,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HILittleArrows_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HILittleArrows,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HILittleArrows,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HILittleArrows,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HILittleArrows,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HILittleArrows */
#endif /* SOM_HILittleArrows_xh */
#ifndef SOM_HIProgressIndicator_xh
#define SOM_HIProgressIndicator_xh
class HIProgressIndicator;
#define HIProgressIndicator_MajorVersion 0
#define HIProgressIndicator_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIProgressIndicator_API
#define HIProgressIndicator_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIProgressIndicatorCClassData HIProgressIndicatorClassData
#define HIProgressIndicatorNewClass(major,minor) somNewVersionedClassReference(HIProgressIndicator,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIProgressIndicatorMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIProgressIndicator class object, and the methods it introduces. */
SOMEXTERN struct HIProgressIndicatorClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitProgressIndicator;
somMToken SetBehavior;
somMToken GetBehavior;
somMToken SpinForward;
somMToken SpinBackward;
} SOMDLINK HIProgressIndicatorClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIProgressIndicator_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIProgressIndicatorClassData
#endif
#endif
/*
* -- Typedefs for HIProgressIndicator Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_InitProgressIndicator)(HIProgressIndicator *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
HIControlBehavior behavior);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetBehavior)(HIProgressIndicator *somSelf, Environment *ev,
HIControlBehavior newBehavior);
typedef HIControlBehavior (* SOMLINK somTD_HIProgressIndicator_GetBehavior)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SpinForward)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SpinBackward)(HIProgressIndicator *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_InitControl)(HIProgressIndicator *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetValue)(HIProgressIndicator *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIProgressIndicator_GetValue)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetMinimum)(HIProgressIndicator *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIProgressIndicator_GetMinimum)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetMaximum)(HIProgressIndicator *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIProgressIndicator_GetMaximum)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SimulateSelection)(HIProgressIndicator *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIProgressIndicator_GetEmbeddingParent)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_InitPanel)(HIProgressIndicator *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_RegisterInterestInAppleEvent)(HIProgressIndicator *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_HasValidContent)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_GetDeepCollectionItemData)(HIProgressIndicator *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIProgressIndicator_GetWindow)(HIProgressIndicator *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIProgressIndicator_GetPort)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_GetRefLabel)(HIProgressIndicator *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIProgressIndicator_GetCollection)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_Init)(HIProgressIndicator *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIProgressIndicator_Terminate)(HIProgressIndicator *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIProgressIndicator_Clone)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Release)(HIProgressIndicator *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIProgressIndicator_GetOwnerCount)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_InitFromAERecord)(HIProgressIndicator *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_WriteToAERecord)(HIProgressIndicator *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIProgressIndicator_CalculateOptimalSize)(HIProgressIndicator *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIProgressIndicator_GetBoundingRect)(HIProgressIndicator *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetBoundingRect)(HIProgressIndicator *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetPosition)(HIProgressIndicator *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetSize)(HIProgressIndicator *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIProgressIndicator_GetUpdateRect)(HIProgressIndicator *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIProgressIndicator_Enable)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Disable)(HIProgressIndicator *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_IsEnabled)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Show)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Hide)(HIProgressIndicator *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_IsVisible)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleAppleEvent)(HIProgressIndicator *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleActivate)(HIProgressIndicator *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleDeactivate)(HIProgressIndicator *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleNavigation)(HIProgressIndicator *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleMouseDownInContent)(HIProgressIndicator *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleMouseMovedInContent)(HIProgressIndicator *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleMouseStoppedMovingInContent)(HIProgressIndicator *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_HandleMouseUpInContent)(HIProgressIndicator *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIProgressIndicator_TakeUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_ReleaseUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_HasUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_CanReleaseUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetUserInputFocusFlags)(HIProgressIndicator *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIProgressIndicator_GetUserInputFocusFlags)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_SetTitle)(HIProgressIndicator *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_GetTitle)(HIProgressIndicator *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIProgressIndicator_Draw)(HIProgressIndicator *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIProgressIndicator_Erase)(HIProgressIndicator *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIProgressIndicator_Invalidate)(HIProgressIndicator *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIProgressIndicator_GetDrawingMode)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetDrawingMode)(HIProgressIndicator *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetBackgroundPattern)(HIProgressIndicator *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIProgressIndicator_GetBackgroundPattern)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Cut)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Copy)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Paste)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_Clear)(HIProgressIndicator *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIProgressIndicator_GetClipboardSupportFlags)(HIProgressIndicator *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_AddStateChangeCallback)(HIProgressIndicator *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_RemoveStateChangeCallback)(HIProgressIndicator *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIProgressIndicator_DrawContent)(HIProgressIndicator *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIProgressIndicator_EraseContent)(HIProgressIndicator *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIProgressIndicator_TranslatePoint)(HIProgressIndicator *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIProgressIndicator_TranslateRect)(HIProgressIndicator *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIProgressIndicator_StateChanged)(HIProgressIndicator *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIProgressIndicator_SetClipboardSupportFlags)(HIProgressIndicator *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIProgressIndicator_Verify)(HIProgressIndicator *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIProgressIndicator_somInit)(HIProgressIndicator *somSelf);
typedef void (* SOMLINK somTD_HIProgressIndicator_somUninit)(HIProgressIndicator *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIProgressIndicator_somDuplicateReference)(HIProgressIndicator *somSelf);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somCompareReference)(HIProgressIndicator *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIProgressIndicator_somRelease)(HIProgressIndicator *somSelf);
typedef void (* SOMLINK somTD_HIProgressIndicator_somFree)(HIProgressIndicator *somSelf);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somCanDelete)(HIProgressIndicator *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIProgressIndicator_somGetClass)(HIProgressIndicator *somSelf);
typedef corbastring (* SOMLINK somTD_HIProgressIndicator_somGetClassName)(HIProgressIndicator *somSelf);
typedef long (* SOMLINK somTD_HIProgressIndicator_somGetSize)(HIProgressIndicator *somSelf);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somIsA)(HIProgressIndicator *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somRespondsTo)(HIProgressIndicator *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somIsInstanceOf)(HIProgressIndicator *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somDispatch)(HIProgressIndicator *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somClassDispatch)(HIProgressIndicator *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somCastObj)(HIProgressIndicator *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIProgressIndicator_somResetObj)(HIProgressIndicator *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIProgressIndicator_somPrintSelf)(HIProgressIndicator *somSelf);
typedef void (* SOMLINK somTD_HIProgressIndicator_somDumpSelf)(HIProgressIndicator *somSelf,
long level);
typedef void (* SOMLINK somTD_HIProgressIndicator_somDumpSelfInt)(HIProgressIndicator *somSelf,
long level);
}
#endif /* HIProgressIndicator_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIProgressIndicator
*/
class HIProgressIndicator : public HIControl
{
public:
// HIProgressIndicator::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIProgressIndicator, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIProgressIndicator);
}
// HIProgressIndicator::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitProgressIndicator */
OSStatus InitProgressIndicator(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
HIControlBehavior behavior)
{
return SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,InitProgressIndicator)
(this,ev,identifier,window,bounds,behavior);
}
/* method: SetBehavior */
void SetBehavior(Environment *ev,
HIControlBehavior newBehavior)
{
SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,SetBehavior)
(this,ev,newBehavior);
}
/* method: GetBehavior */
HIControlBehavior GetBehavior(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,GetBehavior)
(this,ev);
}
/* method: SpinForward */
void SpinForward(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,SpinForward)
(this,ev);
}
/* method: SpinBackward */
void SpinBackward(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,SpinBackward)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIProgressIndicator,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIProgressIndicator,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIProgressIndicator,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIProgressIndicator,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIProgressIndicator,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIProgressIndicator,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIProgressIndicator,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIProgressIndicator_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIProgressIndicator_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIProgressIndicator_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIProgressIndicator,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIProgressIndicator,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIProgressIndicator,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIProgressIndicator,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIProgressIndicator,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIProgressIndicator_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIProgressIndicator_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIProgressIndicator,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIProgressIndicator */
#endif /* SOM_HIProgressIndicator_xh */
#ifndef SOM_HIPopUpControl_xh
#define SOM_HIPopUpControl_xh
class HIPopUpControl;
#define HIPopUpControl_MajorVersion 0
#define HIPopUpControl_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIControl_xh
#include <HIControls.xh>
#endif
#ifndef HIPopUpControl_API
#define HIPopUpControl_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIPopUpControlCClassData HIPopUpControlClassData
#define HIPopUpControlNewClass(major,minor) somNewVersionedClassReference(HIPopUpControl,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIPopUpControlMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIPopUpControl class object, and the methods it introduces. */
SOMEXTERN struct HIPopUpControlClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitPopUpControl;
somMToken SetMenu;
somMToken GetMenu;
} SOMDLINK HIPopUpControlClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIPopUpControl_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIPopUpControlClassData
#endif
#endif
/*
* -- Typedefs for HIPopUpControl Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_InitPopUpControl)(HIPopUpControl *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef void (* SOMLINK somTD_HIPopUpControl_SetMenu)(HIPopUpControl *somSelf, Environment *ev,
HIMenu* menu);
typedef HIMenu* (* SOMLINK somTD_HIPopUpControl_GetMenu)(HIPopUpControl *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_InitControl)(HIPopUpControl *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIPopUpControl_SetValue)(HIPopUpControl *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIPopUpControl_GetValue)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_SetMinimum)(HIPopUpControl *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIPopUpControl_GetMinimum)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_SetMaximum)(HIPopUpControl *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIPopUpControl_GetMaximum)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_SimulateSelection)(HIPopUpControl *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIPopUpControl_GetEmbeddingParent)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_InitPanel)(HIPopUpControl *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_RegisterInterestInAppleEvent)(HIPopUpControl *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIPopUpControl_HasValidContent)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_GetDeepCollectionItemData)(HIPopUpControl *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIPopUpControl_GetWindow)(HIPopUpControl *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIPopUpControl_GetPort)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_GetRefLabel)(HIPopUpControl *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIPopUpControl_GetCollection)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_Init)(HIPopUpControl *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIPopUpControl_Terminate)(HIPopUpControl *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIPopUpControl_Clone)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Release)(HIPopUpControl *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIPopUpControl_GetOwnerCount)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_InitFromAERecord)(HIPopUpControl *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_WriteToAERecord)(HIPopUpControl *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIPopUpControl_CalculateOptimalSize)(HIPopUpControl *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIPopUpControl_GetBoundingRect)(HIPopUpControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIPopUpControl_SetBoundingRect)(HIPopUpControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIPopUpControl_SetPosition)(HIPopUpControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIPopUpControl_SetSize)(HIPopUpControl *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIPopUpControl_GetUpdateRect)(HIPopUpControl *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIPopUpControl_Enable)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Disable)(HIPopUpControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpControl_IsEnabled)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Show)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Hide)(HIPopUpControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpControl_IsVisible)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleAppleEvent)(HIPopUpControl *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleActivate)(HIPopUpControl *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleDeactivate)(HIPopUpControl *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleNavigation)(HIPopUpControl *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleMouseDownInContent)(HIPopUpControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleMouseMovedInContent)(HIPopUpControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleMouseStoppedMovingInContent)(HIPopUpControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_HandleMouseUpInContent)(HIPopUpControl *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIPopUpControl_TakeUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_ReleaseUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpControl_HasUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpControl_CanReleaseUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_SetUserInputFocusFlags)(HIPopUpControl *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIPopUpControl_GetUserInputFocusFlags)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_SetTitle)(HIPopUpControl *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_GetTitle)(HIPopUpControl *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIPopUpControl_Draw)(HIPopUpControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIPopUpControl_Erase)(HIPopUpControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIPopUpControl_Invalidate)(HIPopUpControl *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIPopUpControl_GetDrawingMode)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_SetDrawingMode)(HIPopUpControl *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIPopUpControl_SetBackgroundPattern)(HIPopUpControl *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIPopUpControl_GetBackgroundPattern)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Cut)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Copy)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Paste)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_Clear)(HIPopUpControl *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIPopUpControl_GetClipboardSupportFlags)(HIPopUpControl *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_AddStateChangeCallback)(HIPopUpControl *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_RemoveStateChangeCallback)(HIPopUpControl *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIPopUpControl_DrawContent)(HIPopUpControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIPopUpControl_EraseContent)(HIPopUpControl *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIPopUpControl_TranslatePoint)(HIPopUpControl *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIPopUpControl_TranslateRect)(HIPopUpControl *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIPopUpControl_StateChanged)(HIPopUpControl *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIPopUpControl_SetClipboardSupportFlags)(HIPopUpControl *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIPopUpControl_Verify)(HIPopUpControl *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpControl_somInit)(HIPopUpControl *somSelf);
typedef void (* SOMLINK somTD_HIPopUpControl_somUninit)(HIPopUpControl *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPopUpControl_somDuplicateReference)(HIPopUpControl *somSelf);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somCompareReference)(HIPopUpControl *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIPopUpControl_somRelease)(HIPopUpControl *somSelf);
typedef void (* SOMLINK somTD_HIPopUpControl_somFree)(HIPopUpControl *somSelf);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somCanDelete)(HIPopUpControl *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIPopUpControl_somGetClass)(HIPopUpControl *somSelf);
typedef corbastring (* SOMLINK somTD_HIPopUpControl_somGetClassName)(HIPopUpControl *somSelf);
typedef long (* SOMLINK somTD_HIPopUpControl_somGetSize)(HIPopUpControl *somSelf);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somIsA)(HIPopUpControl *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somRespondsTo)(HIPopUpControl *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somIsInstanceOf)(HIPopUpControl *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somDispatch)(HIPopUpControl *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somClassDispatch)(HIPopUpControl *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somCastObj)(HIPopUpControl *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIPopUpControl_somResetObj)(HIPopUpControl *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPopUpControl_somPrintSelf)(HIPopUpControl *somSelf);
typedef void (* SOMLINK somTD_HIPopUpControl_somDumpSelf)(HIPopUpControl *somSelf,
long level);
typedef void (* SOMLINK somTD_HIPopUpControl_somDumpSelfInt)(HIPopUpControl *somSelf,
long level);
}
#endif /* HIPopUpControl_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIPopUpControl
*/
class HIPopUpControl : public HIControl
{
public:
// HIPopUpControl::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIPopUpControl, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIPopUpControl);
}
// HIPopUpControl::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitPopUpControl */
OSStatus InitPopUpControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPopUpControl,HIPopUpControl,InitPopUpControl)
(this,ev,identifier,window,bounds);
}
/* method: SetMenu */
void SetMenu(Environment *ev,
HIMenu* menu)
{
SOM_ResolveD(this,HIPopUpControl,HIPopUpControl,SetMenu)
(this,ev,menu);
}
/* method: GetMenu */
HIMenu* GetMenu(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIPopUpControl,GetMenu)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIPopUpControl,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIPopUpControl,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIPopUpControl,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIPopUpControl,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPopUpControl,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIPopUpControl,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIPopUpControl,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIPopUpControl_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIPopUpControl_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIPopUpControl_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIPopUpControl,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpControl,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIPopUpControl,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIPopUpControl,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIPopUpControl,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIPopUpControl_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPopUpControl,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIPopUpControl_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPopUpControl,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIPopUpControl,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIPopUpControl,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIPopUpControl,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIPopUpControl */
#endif /* SOM_HIPopUpControl_xh */
#ifndef SOM_HIPopUpButton_xh
#define SOM_HIPopUpButton_xh
class HIPopUpButton;
#define HIPopUpButton_MajorVersion 0
#define HIPopUpButton_MinorVersion 0
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIPopUpControl_xh
#include <HIControls.xh>
#endif
#ifndef HIPopUpButton_API
#define HIPopUpButton_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIPopUpButtonCClassData HIPopUpButtonClassData
#define HIPopUpButtonNewClass(major,minor) somNewVersionedClassReference(HIPopUpButton,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIPopUpButtonMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIPopUpButton class object, and the methods it introduces. */
SOMEXTERN struct HIPopUpButtonClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitPopUpButton;
somMToken AutomaticallyCalculateTitleWidth;
somMToken ManuallySetTitleWidth;
somMToken IsTitleWidthAutomaticallyCalculated;
somMToken SetTitleWidth;
somMToken GetTitleWidth;
} SOMDLINK HIPopUpButtonClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIPopUpButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIPopUpButtonClassData
#endif
#endif
/*
* -- Typedefs for HIPopUpButton Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_InitPopUpButton)(HIPopUpButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef void (* SOMLINK somTD_HIPopUpButton_AutomaticallyCalculateTitleWidth)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_ManuallySetTitleWidth)(HIPopUpButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpButton_IsTitleWidthAutomaticallyCalculated)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_SetTitleWidth)(HIPopUpButton *somSelf, Environment *ev,
UInt16 titleWidth);
typedef UInt16 (* SOMLINK somTD_HIPopUpButton_GetTitleWidth)(HIPopUpButton *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_InitPopUpControl)(HIPopUpButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef void (* SOMLINK somTD_HIPopUpButton_SetMenu)(HIPopUpButton *somSelf, Environment *ev,
HIMenu* menu);
typedef HIMenu* (* SOMLINK somTD_HIPopUpButton_GetMenu)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_InitControl)(HIPopUpButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue);
typedef void (* SOMLINK somTD_HIPopUpButton_SetValue)(HIPopUpButton *somSelf, Environment *ev,
SInt32 newValue);
typedef SInt32 (* SOMLINK somTD_HIPopUpButton_GetValue)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_SetMinimum)(HIPopUpButton *somSelf, Environment *ev,
SInt32 newMinimum);
typedef SInt32 (* SOMLINK somTD_HIPopUpButton_GetMinimum)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_SetMaximum)(HIPopUpButton *somSelf, Environment *ev,
SInt32 newMaximum);
typedef SInt32 (* SOMLINK somTD_HIPopUpButton_GetMaximum)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_SimulateSelection)(HIPopUpButton *somSelf, Environment *ev);
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIPopUpButton_GetEmbeddingParent)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_InitPanel)(HIPopUpButton *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_RegisterInterestInAppleEvent)(HIPopUpButton *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIPopUpButton_HasValidContent)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_GetDeepCollectionItemData)(HIPopUpButton *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIPopUpButton_GetWindow)(HIPopUpButton *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIPopUpButton_GetPort)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_GetRefLabel)(HIPopUpButton *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIPopUpButton_GetCollection)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_Init)(HIPopUpButton *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIPopUpButton_Terminate)(HIPopUpButton *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIPopUpButton_Clone)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Release)(HIPopUpButton *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIPopUpButton_GetOwnerCount)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_InitFromAERecord)(HIPopUpButton *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_WriteToAERecord)(HIPopUpButton *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIPopUpButton_CalculateOptimalSize)(HIPopUpButton *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIPopUpButton_GetBoundingRect)(HIPopUpButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIPopUpButton_SetBoundingRect)(HIPopUpButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIPopUpButton_SetPosition)(HIPopUpButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIPopUpButton_SetSize)(HIPopUpButton *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIPopUpButton_GetUpdateRect)(HIPopUpButton *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIPopUpButton_Enable)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Disable)(HIPopUpButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpButton_IsEnabled)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Show)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Hide)(HIPopUpButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpButton_IsVisible)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleAppleEvent)(HIPopUpButton *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleActivate)(HIPopUpButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleDeactivate)(HIPopUpButton *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleNavigation)(HIPopUpButton *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleMouseDownInContent)(HIPopUpButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleMouseMovedInContent)(HIPopUpButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleMouseStoppedMovingInContent)(HIPopUpButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_HandleMouseUpInContent)(HIPopUpButton *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIPopUpButton_TakeUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_ReleaseUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpButton_HasUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIPopUpButton_CanReleaseUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_SetUserInputFocusFlags)(HIPopUpButton *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIPopUpButton_GetUserInputFocusFlags)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_SetTitle)(HIPopUpButton *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_GetTitle)(HIPopUpButton *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIPopUpButton_Draw)(HIPopUpButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIPopUpButton_Erase)(HIPopUpButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIPopUpButton_Invalidate)(HIPopUpButton *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIPopUpButton_GetDrawingMode)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_SetDrawingMode)(HIPopUpButton *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIPopUpButton_SetBackgroundPattern)(HIPopUpButton *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIPopUpButton_GetBackgroundPattern)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Cut)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Copy)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Paste)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_Clear)(HIPopUpButton *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIPopUpButton_GetClipboardSupportFlags)(HIPopUpButton *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_AddStateChangeCallback)(HIPopUpButton *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_RemoveStateChangeCallback)(HIPopUpButton *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIPopUpButton_DrawContent)(HIPopUpButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIPopUpButton_EraseContent)(HIPopUpButton *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIPopUpButton_TranslatePoint)(HIPopUpButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIPopUpButton_TranslateRect)(HIPopUpButton *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIPopUpButton_StateChanged)(HIPopUpButton *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIPopUpButton_SetClipboardSupportFlags)(HIPopUpButton *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIPopUpButton_Verify)(HIPopUpButton *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIPopUpButton_somInit)(HIPopUpButton *somSelf);
typedef void (* SOMLINK somTD_HIPopUpButton_somUninit)(HIPopUpButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPopUpButton_somDuplicateReference)(HIPopUpButton *somSelf);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somCompareReference)(HIPopUpButton *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIPopUpButton_somRelease)(HIPopUpButton *somSelf);
typedef void (* SOMLINK somTD_HIPopUpButton_somFree)(HIPopUpButton *somSelf);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somCanDelete)(HIPopUpButton *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIPopUpButton_somGetClass)(HIPopUpButton *somSelf);
typedef corbastring (* SOMLINK somTD_HIPopUpButton_somGetClassName)(HIPopUpButton *somSelf);
typedef long (* SOMLINK somTD_HIPopUpButton_somGetSize)(HIPopUpButton *somSelf);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somIsA)(HIPopUpButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somRespondsTo)(HIPopUpButton *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somIsInstanceOf)(HIPopUpButton *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somDispatch)(HIPopUpButton *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somClassDispatch)(HIPopUpButton *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somCastObj)(HIPopUpButton *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIPopUpButton_somResetObj)(HIPopUpButton *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIPopUpButton_somPrintSelf)(HIPopUpButton *somSelf);
typedef void (* SOMLINK somTD_HIPopUpButton_somDumpSelf)(HIPopUpButton *somSelf,
long level);
typedef void (* SOMLINK somTD_HIPopUpButton_somDumpSelfInt)(HIPopUpButton *somSelf,
long level);
}
#endif /* HIPopUpButton_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIPopUpButton
*/
class HIPopUpButton : public HIPopUpControl
{
public:
// HIPopUpButton::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIPopUpButton, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIPopUpButton);
}
// HIPopUpButton::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitPopUpButton */
OSStatus InitPopUpButton(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,InitPopUpButton)
(this,ev,identifier,window,bounds);
}
/* method: AutomaticallyCalculateTitleWidth */
void AutomaticallyCalculateTitleWidth(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,AutomaticallyCalculateTitleWidth)
(this,ev);
}
/* method: ManuallySetTitleWidth */
void ManuallySetTitleWidth(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,ManuallySetTitleWidth)
(this,ev);
}
/* method: IsTitleWidthAutomaticallyCalculated */
boolean IsTitleWidthAutomaticallyCalculated(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,IsTitleWidthAutomaticallyCalculated)
(this,ev);
}
/* method: SetTitleWidth */
void SetTitleWidth(Environment *ev,
UInt16 titleWidth)
{
SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,SetTitleWidth)
(this,ev,titleWidth);
}
/* method: GetTitleWidth */
UInt16 GetTitleWidth(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,GetTitleWidth)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: InitPopUpControl */
OSStatus InitPopUpControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPopUpButton,HIPopUpControl,InitPopUpControl)
(this,ev,identifier,window,bounds);
}
/* method: SetMenu */
void SetMenu(Environment *ev,
HIMenu* menu)
{
SOM_ResolveD(this,HIPopUpButton,HIPopUpControl,SetMenu)
(this,ev,menu);
}
/* method: GetMenu */
HIMenu* GetMenu(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIPopUpControl,GetMenu)
(this,ev);
}
/* method: InitControl */
OSStatus InitControl(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
SInt32 value,
SInt32 minimumValue,
SInt32 maximumValue)
{
return SOM_ResolveD(this,HIPopUpButton,HIControl,InitControl)
(this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
}
/* method: SetValue */
void SetValue(Environment *ev,
SInt32 newValue)
{
SOM_ResolveD(this,HIPopUpButton,HIControl,SetValue)
(this,ev,newValue);
}
/* method: GetValue */
SInt32 GetValue(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIControl,GetValue)
(this,ev);
}
/* method: SetMinimum */
void SetMinimum(Environment *ev,
SInt32 newMinimum)
{
SOM_ResolveD(this,HIPopUpButton,HIControl,SetMinimum)
(this,ev,newMinimum);
}
/* method: GetMinimum */
SInt32 GetMinimum(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIControl,GetMinimum)
(this,ev);
}
/* method: SetMaximum */
void SetMaximum(Environment *ev,
SInt32 newMaximum)
{
SOM_ResolveD(this,HIPopUpButton,HIControl,SetMaximum)
(this,ev,newMaximum);
}
/* method: GetMaximum */
SInt32 GetMaximum(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIControl,GetMaximum)
(this,ev);
}
/* method: SimulateSelection */
void SimulateSelection(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIControl,SimulateSelection)
(this,ev);
}
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIPopUpButton,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIPopUpButton,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIPopUpButton,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIPopUpButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIPopUpButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIPopUpButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIPopUpButton,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIPopUpButton,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIPopUpButton,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIPopUpButton,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIPopUpButton,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIPopUpButton_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPopUpButton,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIPopUpButton_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIPopUpButton,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIPopUpButton,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIPopUpButton,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIPopUpButton,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIPopUpButton */
#endif /* SOM_HIPopUpButton_xh */